.tools-col {
  width: 300px;
  height: 100%;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 0;
  padding: 0;
  opacity: 0;
  -webkit-overflow-scrolling: touch;
  overflow-scrolling: touch;
  @extend %trans;
  &.show {
    @extend %anmSmallLeftIn;
  }
  &.hide {
    @extend %anmSmallLeftOut;
  }
  .tools-nav {
    display: none;
  }
  .tools-wrap, .tools-section{
    height: 100%;
    color: #e5e5e5;
    width: 360px;
    overflow: hidden;
    overflow-y: auto;
    ::-webkit-scrollbar {
      display: none;
    }
  }
  .tools-section {
    .search-wrap {
      margin: 20px 20px 10px 20px;
      position: relative;
      border-bottom: 2px solid $colorF;
      display: flex;
      flex-wrap: wrap;
      .search-ipt {
        color: $colorF;
        background: none;
        border: none;
        flex-grow: 1;
        width: 0;
        min-width: 80px;
      }
      >.icon-search {
        position: absolute;
        right: 0;
        bottom: 7px;
        color: $colorF;
        cursor: pointer;
        @extend %trans;
        &:hover {
          transform: scale(1.2);
        }
      }
      .search-item {
        padding-left: 5px;
        margin: 2px;
        border-radius: 20px;
        background-color: #076773;
        white-space: nowrap;
        font-size: 14px;
        line-height: 25px;
        >.icon-close {
          color: darken($colorF, 15%);
          font-size: 12px;
          position: relative;
          margin-right: 3px;
          cursor: pointer;
        }
      }
      ::-webkit-input-placeholder {
        color: #ededed;
      }
    }
    .search-tag.tagcloud {
      text-align: center;
      position: relative;
      .article-tag-list {
        @extend %trans;
        margin: 15px 10px 0;
        padding: 10px;
        background: rgba(255,255,255,0.2);
        &.show {
          display: block;
        }
      }
      .a {
        float: initial;
      }
    }
    .search-ul {
      margin-top: 10px;
      color: rgba(77, 77, 77, 0.75);
      -webkit-overflow-scrolling: touch;
      overflow-scrolling: touch;
      overflow-y: auto;
      .search-li {
        padding: 10px 20px;
        border-bottom: 1px dotted #dcdcdc;
        &:hover {
          background: rgba(255, 255, 255, 0.2);
        }
      }
      .search-title {
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        display: block;
        color: rgba(255,255,248,1);
        text-shadow: 1px 1px rgba(77,77,77,0.25);
        .icon {
          margin-right: 10px;
          color: #fffdd8;
        }
        &:hover {
          color: #fff;
          @extend %trans;
        }
      }
      .search-time, .search-tag, .search-category {
        display: inline-block;
        font-size: 12px;
        color: #fffdd8;
        margin-right: 10px;
        .icon {
          margin-right: 0px;
        }
        span {
          cursor: pointer;
          margin-right: 5px;
          &:hover {
            color: #fff;
            @extend %trans;
          }
        }
      }
    }
  }

  .tools-section-friends {
    padding-top: 30px;
  }
  .aboutme-wrap {
    display: flex;
    align-items:center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #fffdd8;
    text-shadow: 1px 1px rgba(77, 77, 77, 0.45);
  }
}
// 按钮开关
@mixin borderRadius($radius:20px) {
  border-radius: $radius;
  border-top-left-radius: $radius;
  border-top-right-radius: $radius;
  border-bottom-left-radius: $radius;
  border-bottom-right-radius: $radius;
}

$duration: .4s;
$checkedColor: #64bd63;
label.bui-switch-label {
  input {
    position: absolute;
    opacity: 0;
    visibility: hidden;
  }
  input:checked {
    border-color: $checkedColor;
    box-shadow: $checkedColor 0 0 0 16px inset;
    background-color: $checkedColor;
    &:before {
        left: 27px;
    }
  }
  input:disabled + .bui-switch {
    background-color: #e8e8e8;
    border: solid 1px #dfdfdf;
    &:before {
        background-color: #c1c1c1;
    }
  }
  input:disabled:checked + .bui-switch {
    background-color: #e8e8e8;
    box-shadow: #e8e8e8 0 0 0 16px inset;
    border: solid 1px #dfdfdf;
    &:before {
      background-color: #c1c1c1;
    }
  }
  .bui-switch {
    width: 50px;
    height: 20px;
    position: relative;
    top: 5px;
    border: 1px solid #dfdfdf;
    background-color: #fdfdfd;
    box-shadow: #dfdfdf 0 0 0 0 inset;
    @include borderRadius();
    background-clip: content-box;
    display: inline-block;
    -webkit-appearance: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    outline: none;
    &:before {
      content: '';
      width: 18px;
      height: 18px;
      position: absolute;
      left: 1px;
      @include borderRadius();
      background-color: #fff;
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    }
  }
  input:checked + .bui-switch {
    border-color: $checkedColor;
    box-shadow: $checkedColor 0 0 0 16px inset;
    background-color: $checkedColor;
    &:before {
      left: 30px;
    }
  }
  &.bui-switch-animbg {
    transition: background-color ease $duration;
    .bui-switch:before {
      transition: left 0.3s;
    }
    input:checked + .bui-switch {
      box-shadow: #dfdfdf 0 0 0 0 inset;
      background-color: $checkedColor;
      transition: border-color $duration, background-color ease $duration;
      &:before {
        transition: left 0.3s;
      }
    }
  }
}

#search-panel {
  width: 500px;
  top: 10%;
  transform: translate(-50%,0);
  .search {
    border-bottom: 1px solid #ccc;
    display: flex;
    line-height: 40px;
    .search-input-icon {
      padding: 0 10px;
    }
    .search-input {
      flex-grow: 1;
      input[type=text] {
        padding: 5px 0;
        width: 100%;
        outline: 0;
        border: none;
        background: 0 0;
      }
    }
  }
  .search-result {
    max-height: 600px;
    overflow-y: auto;
    position: relative;
    .search-result-item {
      text-align: left;
      border-bottom: 1px dashed $colorC;
      padding: 10px 10px 0;
      &:hover {
        border-bottom-color: $colorA;
      }
    }
    .tip {
      text-align: center;
    }
    .more-item {
      cursor: pointer;
      transform: rotate(180deg) translateY(60px);
      background: linear-gradient(-180deg,$colorBg 10%,rgba(255, 255, 255, 0) 100%);
      position: absolute;
      height: 70px;
      width: 100%;
    }
  }
}